//
//  ViewPagerTestViewController.swift
//  sss
//
//  Created by hrrMac on 2020/1/10.
//  Copyright © 2020 hrrMac. All rights reserved.
//

import UIKit

class ViewPagerTestViewController: BaseViewController,YOViewPagerDelegate {

    @IBOutlet weak var viewPager: YOViewPager!
    override func viewDidLoad() {
        super.viewDidLoad()
        viewPager.delegate = self
        viewPager.loadType = .openLoad
        viewPager.reloadData()
    }

    func numberOfPager(_ viewPager: YOViewPager) -> Int{
        return 2
    }
    ///返回子视图对象
    func viewPager(_ viewPager: YOViewPager, viewForPager index: Int) -> UIViewController{
        return ViewSubTestViewController()
    }

    
//    deinit {
//        print("deinit: \(self.description)")
//    }
    
}
